package com.demo.service;

import com.alipay.api.AlipayApiException;
import com.demo.controller.from.MovieOrderFrom;
import com.demo.exetion.MainExection;
import com.demo.model.MovieOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.utils.Result;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 杨森
 * @since 2022-04-07
 */
public interface MovieOrderService extends IService<MovieOrder> {

    public Boolean addMovieOrder(MovieOrderFrom movieOrderFrom) throws MainExection;

    public String payOrder(BigInteger orderid) throws MainExection, AlipayApiException;

    public void notify(ServletRequest request, ServletResponse response) throws AlipayApiException, UnsupportedEncodingException, MainExection;

    public String refund(BigInteger orderid) throws AlipayApiException, MainExection;

    public String queryOrder(BigInteger orderid) throws AlipayApiException;

    public Boolean OrderScore(BigInteger orderid,Integer score) throws MainExection;

    public String iphoneMa(String iphone) throws MainExection;

    public MovieOrder getOrder(BigInteger orderid) throws MainExection;

}
